package com.guigu.dealservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.PageInfo;
import com.guigu.dealservice.entity.SalesData;
import com.guigu.dealservice.entity.Total;
import com.guigu.dealservice.vo.TotalVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TotalMapper extends BaseMapper<Total> {
    List<Total> queryTotalList(@Param("vo") TotalVo vo);

    /**
     * 查询指定月份数内的销售数据
     * @param months 月份数
     * @return 销售数据列表
     */
    List<SalesData> querySalesByMonthAndSalesman(@Param("months") Integer months);

    List<SalesData> querySalesByMonthAndSalesman2(@Param("eid") Integer eid,@Param("months") Integer months);
}
